/**
 * 
 */
package com.zte.claa.inficombo.csa.app.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 定位原始数据处理配置项
 * 
 * @author 0283000115
 * 
	csa.loc.optimize.rawdata.beacontopicnum=5
	csa.loc.optimize.rawdata.beacontopicprefix=t_csa_loc_beacondata
	csa.loc.optimize.rawdata.anchortopicnum=5
	csa.loc.optimize.rawdata.anchortopicprefix=t_csa_loc_anchordata
	csa.loc.optimize.rawdata.savetodb=true
 *  csa.loc.optimize.rawdata.savememsstate=false
 *  csa.loc.optimize.rawdata.saveoriginalgps=false
 */

@Component  
@ConfigurationProperties(prefix="csa.loc.optimize.rawdata") 
public class LocOptConfProps {	
	// 信标beacon消息主题数目.
	private int beacontopicnum = 0;
	// 信标beacon消息主题前缀.
	private String beacontopicprefix = "t_csa_loc_beacondata";
	// 锚点anchor消息主题数目.
	private int anchortopicnum = 0;
	// 锚点anchor消息主题前缀.
	private String anchortopicprefix = "t_csa_loc_anchordata";
	// 是否存库标记.
	private boolean savetodb = true;	
	// 是否保存原始的gps.
	private boolean saveoriginalgps = false;
	// 是否保存MEMS-state数据
	private boolean savememsstate = false;
	
	public int getBeacontopicnum() {
		return beacontopicnum;
	}
	public void setBeacontopicnum(int beacontopicnum) {
		this.beacontopicnum = beacontopicnum;
	}
	public String getBeacontopicprefix() {
		return beacontopicprefix;
	}
	public void setBeacontopicprefix(String beacontopicprefix) {
		this.beacontopicprefix = beacontopicprefix;
	}
	public int getAnchortopicnum() {
		return anchortopicnum;
	}
	public void setAnchortopicnum(int anchortopicnum) {
		this.anchortopicnum = anchortopicnum;
	}
	public String getAnchortopicprefix() {
		return anchortopicprefix;
	}
	public void setAnchortopicprefix(String anchortopicprefix) {
		this.anchortopicprefix = anchortopicprefix;
	}
	public boolean isSavetodb() {
		return savetodb;
	}
	public void setSavetodb(boolean savetodb) {
		this.savetodb = savetodb;
	}
	public boolean isSaveoriginalgps() {
		return saveoriginalgps;
	}
	public void setSaveoriginalgps(boolean saveoriginalgps) {
		this.saveoriginalgps = saveoriginalgps;
	}
	public boolean isSavememsstate() {
		return savememsstate;
	}
	public void setSavememsstate(boolean savememsstate) {
		this.savememsstate = savememsstate;
	}
	
}
